<template>
    <el-dialog
      v-model="isShow"
      :title="title"
      width="90%"
      :close-on-click-modal="false"
      @close="handleClose"
    >
    <iframe :src="src" frameborder="no" style="width: 100%;height: 600px" scrolling="auto" />  
    </el-dialog>
  </template>
  
  <script setup lang="ts">
  import {ElMessage, ElMessageBox} from 'element-plus'
  import { ref, reactive, inject, getCurrentInstance, ComponentInternalInstance } from 'vue';
  const {proxy} = getCurrentInstance() as ComponentInternalInstance;
  let optionData:any = inject('optionData'); 
  const emit = defineEmits(['confirm']);
  let isShow = ref(false);
  let title = ref('输入地址，点击地图上的位置点，复制坐标');
  // let src:any = ref('https://api.map.baidu.com/lbsapi/getpoint/index.html');
  let src:any = ref('https://lbs.qq.com/tool/getpoint/get-point.html');
  const init = () => {
    isShow.value = true;
  };
  const handleClose = () => {
    
  }
  
  defineExpose({
    init,
  })
  </script>
  
  <style>
  
  </style>